﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FTradeCatheringAdd.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.FTradeModel.FTradeCatheringAdd" %>
<script type="text/javascript">
    $(document).ready(function () {
        $("div.FTradeCatheringAdd").find(".changeevent").blur(function () {
            settingFCTitle();
        })
        $("#FTradeCatheringAdd_KuanXiangLeiXing").change(function () {
            settingFCTitle();
            if ($(this).val() == "融资") {
                $("#FTradeCatheringAdd_MoneyFrom").show().val("三井住友");
                
            } else {
                if ($(this).val() == "电汇") {
                    $("#FTradeCatheringAdd_MoneyFrom").show().val("");
                } else {
                    $("#FTradeCatheringAdd_MoneyFrom").hide().val("");
                }
            }
            
        })
        function settingFCTitle() {
            var $FCTitle = $(".FTradeCatheringAdd").find(":text[name='FCTitle']");
            var $JingXiaoShang = $(".FTradeCatheringAdd").find(":text[name='JingXiaoShang']").val();
            var $ShoukuanRiQi = $(".FTradeCatheringAdd").find(":text[name='ShoukuanRiQi']").val();
            var $JinE = $(".FTradeCatheringAdd").find(":text[name='JinE']").val();
            var $KuanXiangLeiXing = $(".FTradeCatheringAdd").find("select[name='KuanXiangLeiXing']").val();

            $FCTitle.val($ShoukuanRiQi + $JingXiaoShang + $JinE + $KuanXiangLeiXing);
        }
        $("#FTradeCatheringAdd_MoneyFrom").hide();
    })


</script>
<div class="pageContent">
	<form method="post" action="FTradeModel/FTradeCatheringAdd.aspx?ajaxmethod=add" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent FTradeCatheringAdd" layoutH="58">
             
				<label style=" font-weight:bold; color:Olive;">收款标题：</label>
				<input name="FCTitle" type="text" class="required" value="" size="80" readonly  />
                <span class="unit">(做为标签方便使用)</span>
			  
              <div class="divider"></div>
               <p>
				    <label>经 销 商：</label>
                    <input name="JingXiaoShang" type="text" value="" class="required textInput autocomplete changeevent" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getagentlist" swidth="300"/>
			   </p>
               <p>
				    <label>收款日期：</label>
				    <input name="ShoukuanRiQi" class="date required changeevent" type="text" value="" alt=""/>
			   </p>
              <div class="divider"></div>
              <p>
				    <label>金     额：</label>
				    <input  name="JinE" class="required inputFloat changeevent" type="text" value="0" size="" alt=""/>
                    <span class="unit">元</span>
			   </p>
               <p>
                    <label>款项类型:</label>
                    <select id="FTradeCatheringAdd_KuanXiangLeiXing" name="KuanXiangLeiXing"　class="required changeevent"　>
                            <option value="" selected>请选择...</option>
                            <option value="样机押金">样机押金</option>
                            <option value="店招补助">店招补助</option>
                            <option value="电汇">电汇</option>
                            <option value="汇票">汇票</option>
                            <option value="融资">融资</option>
                            <option value="维修费">维修费</option>
                            <option value="展会费">展会费</option>
                            <option value="返利">返利</option>
                            <option value="其他">其他</option>
                            <option value="调帐">调帐</option>
                           
                     </select>
                     <input type="text" id="FTradeCatheringAdd_MoneyFrom" name="MoneyFrom" value="三井住友" />
                </p>
                <div class="divider"></div>
                <label>备注：</label>
				<textarea name="Remark" cols="80" rows="4" ></textarea>
                <div style="clear:both;margin-bottom: 5px;"></div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">添加</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>
